import request from '@/utils/request'

// 查询档案分类列表
export function listAmGroup(query) {
  return request({
    url: '/am/amGroup/list',
    method: 'get',
    params: query
  })
}

export function listAllAmGroup(query) {
    return request({
        url: '/am/amGroup/listAllAmGroup',
        method: 'get',
        params: query
    })
}

// 查询档案分类详细
export function getAmGroup(id) {
  return request({
    url: '/am/amGroup/' + id,
    method: 'get'
  })
}

// 新增档案分类
export function addAmGroup(data) {
  return request({
    url: '/am/amGroup',
    method: 'post',
    data: data
  })
}

// 修改档案分类
export function updateAmGroup(data) {
  return request({
    url: '/am/amGroup',
    method: 'put',
    data: data
  })
}

// 删除档案分类
export function delAmGroup(id) {
  return request({
    url: '/am/amGroup/' + id,
    method: 'delete'
  })
}
